﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using SDT.Model;
using SDT.Lib.Paging;

namespace SDT.Site.ViewModels
{
    /// <summary>
    /// Author: Takamaru Nguyen
    /// Date: 02/08/2011
    /// </summary>
    public class DocumentViewModels
    {
        public DocumentViewModels()
        {
            this.ListDocument = new List<DocumentCategoryItem>();
        }

        public List<DocumentCategoryItem> ListDocument
        {
            get;
            set;
        }

        public string FileUrl
        {
            get;
            set;
        }
    }

    /// <summary>
    /// Author: Takamaru Nguyen
    /// Date: 02/08/2011
    /// </summary>
    public class DocumentCategoryItem
    {
        public DocumentCategoryItem()
        { }

        public DocumentCategory Category
        {
            get;
            set;
        }

        public IPagedList<FormDocument> Documents
        {
            get;
            set;
        }

        public List<DocumentItem> DocumentItems
        {
            get;
            set;
        }

        public string FileRootPath
        {
            get;
            set;
        }

    }

    /// <summary>
    /// Author: Takamaru Nguyen
    /// Date: 03/08/2011
    /// </summary>
    public class DocumentItem
    {
        public DocumentItem()
        {
            this.Documents = new List<Document>();
        }

        public FormDocument FormDocument
        {
            get;
            set;
        }

        public List<Document> Documents
        {
            get;
            set;
        }

        public string FileRootPath
        {
            get;
            set;
        }
    }
}
